package com.seadragon.app.dms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.seadragon.app.dms.dao.AutomobileDao;
import com.seadragon.app.dms.model.Automobile;
import com.seadragon.app.dms.service.AutomobileService;

@Transactional
public class AutomobileServiceImpl implements AutomobileService {
	@Autowired
	private AutomobileDao automobileDao;
	@Override
	public void save(Automobile automobile) {
		automobileDao.save(automobile);
	}
	@Override
	public Automobile findById(long id){
		return automobileDao.findById(id);
	}
}
